/*
 * @Author: fox 1477773111@qq.com
 * @Date: 2024-01-26 14:26:42
 * @LastEditors: fox 1477773111@qq.com
 * @LastEditTime: 2024-01-26 14:51:01
 * @FilePath: \commercial\vite.config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import {URL, fileURLToPath} from "node:url"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react()
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url))
    }
  },
  server: {
    host: true,
    port: 4040,
    strictPort:true,
    open: true,
  }
})
